Component({
  options: {
    multipleSlots: true
  },
  properties: {
    title: {
      type: String,
      value: ''
    },
    padding: {
      type: String,
      value: '12px'
    },
    ricon: {
      type: String,
      value: ''
    },
    thairline: {
      type: Boolean,
      value: false
    },
    bhairline: {
      type: Boolean,
      value: true
    },
  },
  data: {
    uiShow: false,
    params: null
  },
  methods: {
    handleHide(e){
      this.setData({ uiShow: false })
      this.triggerEvent('hideEvent', this.data.params)
    },
    handleShow(e, params){
      this.setData({ uiShow: true, params })
      console.log('handleShow', params)
      this.triggerEvent('showEvent')
    },
  }
})
